﻿using Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.Factory
{
    public interface IJoinService: IDependency
    {
        /// <summary>
        /// 更改中奖状态
        /// </summary>
        /// <param name="joins"></param>
        void UpdateJoins(List<T_Join> joins);
        /// <summary>
        /// 中奖后修改收货地址
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="activityId"></param>
        /// <param name="address"></param>
        void SetAddress(int userId,int activityId,string address);
        /// <summary>
        /// 核销兑奖
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        T_Join UseExchangeCode(string code);
    }
}
